﻿<UserControl x:Class="WPFHeader"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="100" d:DesignWidth="600">
    <UserControl.Resources>
        <BitmapImage x:Key="CLLogo" CreateOptions="IgnoreImageCache" CacheOption="OnLoad" UriSource="C:\Projects\Calcsheet\bbsCalcsheet\bbsCalcsheet\UserControls\Images\CLLogo.jpg"/>
    </UserControl.Resources>
    <Grid>
        <Grid >
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="250" />
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
            <Image Grid.Column="0"  Source="{DynamicResource CLLogo}"  Margin="10" />
            <Label Grid.Column="1" Content="{Binding Version}" HorizontalAlignment="Right" VerticalAlignment="Top"/>
            <Label Grid.Column="1" Content="Created By: Brett Barr-Smith" HorizontalAlignment="Right" VerticalAlignment="Bottom"/>
            <Button Content="Print" Grid.Column="1" HorizontalAlignment="Left" Margin="265,30,0,0" VerticalAlignment="Top" Width="75" Click="Button_Click_1"/>
        </Grid>

    </Grid>
</UserControl>
